|
battmon2 2.2.1
|
BATTMON2 Click example. More...
Macros | |
| #define | MIKROBUS_POSITION_BATTMON2 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
BATTMON2 Click example.
This example demonstrates the use of BATT-MON 2 Click board by monitoring the measurements of battery voltage, current, capacity, percentage, time-to-empty or time-to-full, as well as the chip internal temperature.
The demo application is composed of two sections :
Initializes the driver and checks the communication by reading and verifying the device ID.
Reads and displays on the USB UART the measurements of battery voltage, current, capacity, percentage, time-to-empty or time-to-full, as well as the chip internal temperature approximately once per second.
| #define MIKROBUS_POSITION_BATTMON2 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |